﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
using Microsoft.Reporting.WinForms;

namespace AppAcc.Views.BaoCaoChungTu
{
    public partial class FormBaoCaoChungTuKeToan : Form
    {
        public FormBaoCaoChungTuKeToan()
        {
            InitializeComponent();
        }

        private string CT;
        public FormBaoCaoChungTuKeToan(string CT1)
        {
            InitializeComponent();
            CT = CT1.Trim();
        }

        private void FormBaoCaoChungTuKeToan_Load(object sender, EventArgs e)
        {
            this.pr_ChungTuKeToanTableAdapter.Fill(this.dS_ChungTuKeToan.pr_ChungTuKeToan, CT);
            ReportParameter[] rptParams = new ReportParameter[]
            {
                new ReportParameter("SoChungTu",CT)           
            };
            reportViewer1.LocalReport.SetParameters(rptParams);

            this.reportViewer1.RefreshReport();
        }
    }
}
